import request from "@/utils/request";

// 查询商品列表列表
export function listProduct(query) {
  return request({
    url: "/product/product/list",
    method: "get",
    params: query,
  });
}
export function listFormEs(query) {
  return request({
    url: "/product/product/listFormEs",
    method: "get",
    params: query,
  });
}

// 查询商品列表详细
export function getProduct(prodId) {
  return request({
    url: "/product/product/" + prodId,
    method: "get",
  });
}

// 新增商品列表
export function addProduct(data) {
  return request({
    url: "/product/product",
    method: "post",
    data: data,
  });
}

// 修改商品列表
export function updateProduct(data) {
  return request({
    url: "/product/product",
    method: "put",
    data: data,
  });
}

// 删除商品列表
export function delProduct(prodId) {
  return request({
    url: "/product/product/" + prodId,
    method: "delete",
  });
}
